<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%request_log}}".
 *
 * @property string $id
 * @property string $json
 * @property integer $create_time
 * @property string $http
 */
class RequestLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%request_log}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['json', 'create_time', 'http'], 'required'],
            [['json'], 'string'],
            [['create_time'], 'integer'],
            [['http'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'json' => 'Json',
            'create_time' => 'Create Time',
            'http' => 'Http',
        ];
    }
}
